/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2013-2014 sagyf Yang. The Four Group.
 */

/**
 * Created by liuhui
 */
define([ 'adminapp', 'spinner'], function ($app) {

    $app.navactive('activity_mall');

    $app.initEditor('textarea#description_editor');

    $app.single_uploader({
        'uploader'  : g.ctx + 'file/up?dpi=bacvtity',
        'buttonText': '点击上传图片',
        'height'    : 20,
        'width'     : 80
    }, 'picture_image_btn');

    $('#spinner1').spinner();


    $app.formvalidator({
        'activity.name'       : {
            required : true,
            maxlength: 30
        },
        'activity.is_enroll'  : {
            required: true
        }

    }, 'actMallForm');

    return {};
});

